package wxappapi

import (
	"github.com/gogf/gf/v2/database/gdb"
	"github.com/gogf/gf/v2/frame/g"
)

type GetNavReq struct {
	g.Meta `path:"/get" method:"get" tags:"微信应用导航" summary:"获取单个导航"`
	Id     int `v:"required|min:1#请输入正确的导航ID"`
}

type GetNavRes struct {
	NavInfo gdb.Record `json:"Nav"`
}

type ListNavReq struct {
	g.Meta   `path:"/list" method:"get" tags:"微信应用导航" summary:"获取导航列表"`
	PageNum  int `p:"pageNum" dc:"页码"`
	PageSize int `p:"pageSize" dc:"每页数量"`
	Category int `p:"category" dc:"导航分类"`
}

type ListNavRes struct {
	Total int        `json:"total"`
	List  gdb.Result `json:"list"`
}
